Skip to content

docs(better-auth): Change CLI command from @better-auth to auth #7575

Open
yuito-it wants to merge 1 commit intoprisma:mainfrom
yuito-it:patch-1
Open

docs(better-auth): Change CLI command from @better-auth to auth #7575
yuito-it wants to merge 1 commit intoprisma:mainfrom
yuito-it:patch-1

Conversation

@yuito-it
Copy link

@yuito-it yuito-it commented Mar 1, 2026

This pull request updates the Next.js authentication guide to use the new CLI command for Better Auth. The changes ensure that users follow the latest recommended setup instructions.

Documentation updates:

  • Updated the command for generating a secure secret from npx @better-auth/cli@latest secret to npx auth@latest secret in the Next.js authentication guide (apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx).
  • Updated the command for generating authentication configuration from npx @better-auth/cli generate to npx auth generate in the Next.js authentication guide (apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx).Updated command for generating secret and authentication tokens.

Summary by CodeRabbit

Documentation

  • Updated Next.js authentication setup documentation with refreshed CLI command examples for secret generation and schema/authorization configuration. The documentation now reflects the latest command interfaces and tooling updates while maintaining complete backward compatibility. All existing functionality, workflows, behavior, and authentication procedures remain entirely unchanged and unaffected by the updates.

Updated command for generating secret and authentication tokens.
@vercel
Copy link

vercel bot commented Mar 1, 2026

@yuito-it is attempting to deploy a commit to the Prisma Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 1, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 897ec31 and 93c78c6.

📒 Files selected for processing (1)
  • apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx

Walkthrough

This pull request updates documentation in the Better Auth Next.js guide by replacing CLI invocations from the @better-auth/cli namespace to the new auth CLI. Two command examples are updated: secret generation and schema generation commands maintain identical functional behavior under the new namespace.

Changes

Cohort / File(s) Summary
Documentation Updates
apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx
Updated CLI command invocations from npx @better-auth/cli@latest to npx auth@latest for secret and schema generation commands. Observable behavior unchanged; namespace migration only.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: updating CLI commands in the Better Auth documentation from the @better-auth namespace to the new auth namespace.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant